package com.msb.user.controller;

import com.alibaba.fastjson2.JSONObject;
import com.msb.user.api.UserApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DreamAndLove
 * @date 2024/09/05 17:44
 * @description
 */
@RestController
public class UserController implements UserApi {

    @Value("${server.port}")
    String port;
    @Override
    public JSONObject getUserInfo(String name) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("name", name);
        jsonObject.put("port", port);
        return jsonObject;
    }
}
